<?php

class VideoInfoRewardAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT
    );

    /**
     * @param $userId
     * @param $videoId
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId,$videoId,$reqTime) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            VideoInfoService::get()->reward($userId,$videoId,$reqTime)
        );
    }
}